package cn.edu.scau.cmi.wujingxuan.multipleton;

import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class MultipletonClient extends Application
{

	public void start(Stage primaryStage)
	{
		VBox root = new VBox();
		root.setAlignment(Pos.CENTER);

		Button mButton = new Button("创建一位球员");
		mButton.setOnAction(e -> {
			Footballer.addInstance("球员");
		});
		root.getChildren().addAll(mButton);

		Scene scene = new Scene(root, 400, 400);

		primaryStage.setScene(scene);
		primaryStage.show();
	}

	public static void main(String[] args)
	{
		launch(args);
	}

}
